package com.htpro.service.impl;

import com.htpro.mapper.FilmMapper;
import com.htpro.pojo.Film;
import com.htpro.service.FilmService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FilmServiceImpl implements FilmService {
    @Autowired
    private FilmMapper fm;

    @Override
    public List<Film> getAllFilm() {
        return fm.getAllFilm();
    }

    @Override
    public List<Film> getOneFilm(Integer id) {
        return fm.getOneFilm(id);
    }

    @Override
    public List<Film> getFilmByTypef(Integer id) {
        return fm.getFilmByTypef(id);
    }

    @Override
    public List<Film> gerFilmByhighDate() {
        return fm.gerFilmByhighDate();
    }

    @Override
    public List<Film> gerFilmBylowDate() {
        return fm.gerFilmBylowDate();
    }

    @Override
    public List<Film> getFilmByMohuName(String name) {
        return fm.getFilmByMohuName(name);
    }
}
